package com.yishusmt.mobsmt.controller;

import com.yishusmt.mobsmt.dto.base.Result;
import com.yishusmt.mobsmt.dto.request.FeedbackReq;
import com.yishusmt.mobsmt.entity.FeedbackEntity;
import com.yishusmt.mobsmt.service.FeedbackService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 意见反馈接口
 *
 * @author zhangyi
 * @date 2018/8/10 17:50
 */
@RestController
public class FeedbackController {


    @Resource
    private FeedbackService feedbackService;

    /**
     * 意见反馈
     *
     * @param feedbackReq
     * @return
     */
    @PostMapping("/getFeedback")
    @ApiOperation(value = "反馈信息获取",httpMethod = "POST")
    public Result getFeedback(@RequestBody FeedbackReq feedbackReq){
        return feedbackService.getFeedback(feedbackReq);
    }
}
